package com.bj58.migrate.main;

import org.apache.log4j.Logger;

import com.bj58.migrate.helper.Helper;
import com.bj58.migrate.task.Task;
import com.bj58.zhaopin.app.engine.context.AppContext;
import com.bj58.zhaopin.app.engine.task.AppTask;

/**
 * Created by lvzheng on 2014/8/8.
 */
public class CrawlAvgSalaryMain implements AppTask{

	private Logger logger = Logger.getLogger( CrawlAvgSalaryMain.class );

	@Override
	public void init( AppContext appContext ){

		com.bj58.spat.scf.client.SCFInit.init( Helper.seekFile( "scf.config" ).getAbsolutePath() );
	}

	@Override
	public void destory(){

	}

	@Override
	public void start(){

		logger.info( "CrawlAvgSalary job start~~~~" );
		String[] args = { "sr", "avg", "craw" };

		Task task = new Task( args );
		task.run( args );
	}

}
